package cn.com.zcode.exam.model;

import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;

import cn.com.zcode.core.model.BaseModelSupport;

public class Paper extends BaseModelSupport {
	private static final long serialVersionUID = 1L;
	public static final String PAPER_WRONG_INFO = "0000000000000000000";
	public static final int STATE_PUBLIC = 0;
	public static final int STATE_PRIVATE = 1;
	public static final int STATE_WRONG = 2;
	private String title;
	private String filter;
	private String path;
	private String type;
	private String userId;
	private int state;
	private Set<Question> questions = new LinkedHashSet<Question>();

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Set<Question> getQuestions() {
		return questions;
	}

	public void setQuestions(Set<Question> questions) {
		this.questions = questions;
	}

	public void addQuestions(List<Question> questions) {
		this.questions.addAll(questions);
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getFilter() {
		return filter;
	}

	public void setFilter(String filter) {
		this.filter = filter;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

}
